<?php

class t_destinations_visits_offer extends CodeIgniterUnitTestCase {

     private $data;
     private $service_url = 'http://localhost/services-hotels/ibookhotelrest/hotel/';
     private $host_url = 'http://localhost/accommodation/';

     public function __construct() {

          parent::__construct('Test Home Page');

          $this->load->library('rest', array(
              'server' => $this->service_url
          ));
     }

     public function setUp() {
          
     }

     public function tearDown() {
          
     }

     public function test_home_page_data() {

          // start new session
          $this->data['title'] = "Welcome";

          $combined = $this->rest->post('popular_destination');
          if ($combined):
               $this->data['destinations'] = $combined->destinations;
               $this->data['most_viewed'] = $combined->most_viewed;
               $this->data['special_offer'] = $combined->special_offer;
          endif;
          
          $this->dump($this->data);
     }

}

?>